using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StateMachine_Graphical_Editor.Forms
{
    /// <summary>
    /// Select the designer's mode of activation: 
    /// <br> - Remote Connection to State Machine</br>
    /// <br> - Design and edit State Machine</br> 
    /// </summary>
    public partial class WelcomeForm : Form
    {
        #region Members:

        private bool canceled = true;

        private SelectionMode selectionMode;

        #endregion

        #region C'tor:
        
        public WelcomeForm()
        {
            InitializeComponent();
        }

        #endregion

        #region Properties:

        public bool Canceled
        {
            get { return canceled; }
        }

        public SelectionMode SelectionMode
        {
            get { return selectionMode; }
        }

        #endregion

        #region Event handlers:

        private void RunTimeButton_Click(object sender, EventArgs e)
        {
            selectionMode = SelectionMode.RUN_TIME;
            canceled = false;
            this.Dispose();
        }

        private void editorButton_Click(object sender, EventArgs e)
        {
            selectionMode = SelectionMode.EDITOR;
            canceled = false;
            this.Dispose();
        }

        #endregion
    }

    #region Selection Mode Enum:

    public enum SelectionMode
    {
        RUN_TIME,
        EDITOR,
    }

    #endregion
}